package com.jiahao.material.services.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiahao.material.entity.Permission;
import com.jiahao.material.mapper.PermissionMapper;
import com.jiahao.material.services.IPermisisonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service
public class PermissionServiceImp extends ServiceImpl<PermissionMapper, Permission> implements IPermisisonService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public IPage<Permission> getByPage(Page<Permission> permissionPage, Map<String, Object> map) {
        return permissionMapper.getByPage(permissionPage,map);
    }
}
